//
//  TestView.h
//  回调Block
//
//  Created by clz on 2019/7/30.
//  Copyright © 2019年 clz. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef void(^TestBlock)(NSString *str);

@interface TestView : UIView
//视图
@property(nonatomic,strong)void(^changeColor)(NSString *test);

@property(nonatomic,strong)TestBlock testBlock;

//block作为函数的参数
//- (void)userBlock:(void(^)(NSString *str))block;

- (void)userBlock:(TestBlock)testBlock;


@property(nonatomic,strong)void(^changeValueBlock)(void);








@end

NS_ASSUME_NONNULL_END
